import org.w3c.dom.ls.LSOutput;

/*
//先来创建一个父类
class Father{
    String father;
    public int add(int a, int b){
        return a+b;
    }
}
//再来创建一个子类
class baby extends Father{}
*/
public class Daji_test1 {
    public static void main(String arg[]){
        Baby baby = new Baby();
        baby.add(1, 2);
    }
}
class Father{
    int c;
    public int add(int a, int b){
        System.out.println(a+b);
        return 0;
    }
}
class Baby extends Father{
}